﻿@model LM_Shop.Models.Auctions.AuctionModel

@{
    ViewBag.Title = "AuctionDetailsView";
    
}

<h2>AuctionDetailsView</h2>

<div>

    <p>
        @Html.LabelFor(m => m.Price)
        @Html.Encode(Model.Price)
    </p>

    <p>
        @Html.LabelFor(m => m.Title)
        @Html.Encode(Model.Title)
    </p>

    <p>
        @Html.LabelFor(m => m.Id)
        @Html.Encode(Model.Id)
    </p>
    <p>
        @Html.LabelFor(m => m.Count)
        @Html.Encode(Model.Count)
    </p>
    <script>
        $('#button1').click(function () {
            alert("helo")
        });
    </script>

    @if(Request.IsAuthenticated)
    {
        using (Html.BeginForm("Buy", "Auction",Model, FormMethod.Post))
        {
            <button type="submit">Buy</button>
        }
    }


</div>
<div class="message-info">
    <p>
        There are no external authentication services configured. See <a href="http://go.microsoft.com/fwlink/?LinkId=252166">this article</a>
        for details on setting up this ASP.NET application to support logging in via external services.
    </p>
</div>
